package com.changli05._super.exer2;

public class Cylinder extends Circle {
    private double length;

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public Cylinder(double radius, double length) {
        setRadius(radius);
        this.length = length;
    }
    @Override
    public double findArea(){
        return super.findArea()*2+2*this.getRadius()*Math.PI*this.length;
    }
    public double findVolume(){
        return super.findArea()*this.length;
    }
}
